package com.zc.designmodel.behavioral.command;

/**
 * @author: zhuCan
 * @date: 2020/4/14 14:34
 * @description:
 */
public class Test {

  public static void main(String[] args) {
    BuyStock buyStock = new BuyStock(new Stock());
    SellStock sellStock = new SellStock(new Stock());

    Broker broker = new Broker();
    broker.takeCommand(buyStock);
    broker.takeCommand(sellStock);
    broker.placeOrder();
  }
}
